package com.duotai.demo;

abstract class Animal {
    public abstract void eat();
}
class Cat extends Animal{
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }
}

class Pig extends Animal{
    @Override
    public void eat() {
        System.out.println("拱白菜");
    }
}